package io.github.loan.system.pojo;

import java.util.Date;
import java.util.Set;

import io.github.loan.investor.pojo.Grant;

/**
 * 分类POJO
 * 
 * @author Andone
 *
 */
public class Cate {
	private int id;
	private String code;
	private String name;
	private String content;
	private byte cateType;
	private byte status;
	private Date createTime;
	private Date updateTime;
	private Date pubTime;
	
	/*字符串描述*/
	private String cateTypeStr ; 
	private String statusStr ; 
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public byte getCateType() {
		return cateType;
	}

	public void setCateType(byte cateType) {
		this.cateType = cateType;
	}

	public byte getStatus() {
		return status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getPubTime() {
		return pubTime;
	}

	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}

	public String getCateTypeStr() {
		/*
		 * 类型:0:授权的分类;1:用户来源分类
		 */
		if (this.cateType == 0) {
			this.cateTypeStr = "授权";
		} else if (this.cateType == 1) {
			this.cateTypeStr = "用户来源";
		}
		return cateTypeStr;
	}

	public String getStatusStr() {
		/*
		 * 状态:0:禁用:1:启用
		 */
		if (this.status == 0) {
			this.statusStr = "禁用";
		} else if (this.status == 1) {
			this.statusStr = "启用";
		}
		return this.statusStr;
	}
}
